home *** CD-ROM | disk | FTP | other *** search
- > Gr writing 2
- > box 10,10 to 20,20
- > box 10,10 to 20,20
- > gr writing 1
- >
- > One garbage pixel is left at 10,10. Why?
-
- Because the point (10,10) is plotted twice by the Box command. It's
- equivalent to doing
-
- Plot 10,10 : Draw To 20,10 To 20,20 To 10,20 To 10,10
-
- so logical operators like XOR mess up. (The first Box command clears the
- point (10,10), and then when it's Xored again things get messy. Write
- your own procedure like so :
-
- Procedure _BOX[X1,Y1,X2,Y2]
-
- ' This checks which way you should stop short...
-
- If Y1<Y2
- O=-1
- Else
- O=1
- End If
-
- Plot X1,Y1 : Draw To X2,Y1 To X2,Y2 To X1,Y2 to X1,Y2+O
-
- EndProc
-
- Hope this helps...
-
- --
- GCS -d+ H+ s++:- g+ p? !au a- w+++ !Productions 1995
- v* C+++ UB+++A++++ P++ L++ E+ N+++ http://satelnet.org/~mentat/
- K+ !W--- M-- V po- Y+ t++ 5+ jx G?
- R tv++ D- B--- e+ u** h f r++ !n y+ "No matter where you go, there you are."
-
-
-